package com.epam.necklace.view.menu.mainmenu.submenu;

import java.util.ArrayList;
import java.util.List;

import org.apache.log4j.Logger;

import com.epam.necklace.view.menu.Menu;
import com.epam.necklace.view.menu.MenuItem;
import com.epam.necklace.view.menu.mainmenu.submenu.submenustones.Rank1;
import com.epam.necklace.view.menu.mainmenu.submenu.submenustones.Rank2;



public class Stones extends MenuItem {
	private static final Logger log = Logger.getLogger(Stones.class);
	private final Menu subMenu;
	private static final List<MenuItem> items;

	static {
		items = new ArrayList<MenuItem>();
		items.add(new Rank1());
		items.add(new Rank2());
		items.add(new BackMenu());
	}

	public Stones() {
		super("Demi precious", "2");
		subMenu = new Menu(items);
	}

	@Override
	public boolean execute() {
		log.info("Demi precious comand");
		subMenu.run();
		return true;
	}

}
